<template>
    <div style="background-color: white">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }"><i class="el-icon-s-promotion"></i>后台管理</el-breadcrumb-item>
            <el-breadcrumb-item>添加属性</el-breadcrumb-item>
        </el-breadcrumb>
        <el-divider></el-divider>
        <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="130px" class="demo-ruleForm">
            <el-form-item label="属性名称" prop="name">
                <el-input v-model="ruleForm.username"></el-input>
            </el-form-item>
            <el-form-item label="所属属性模板id" prop="templateId">
                <el-input v-model="ruleForm.password"></el-input>
            </el-form-item>
            <el-form-item label="属性类型" prop="type">
                <el-input v-model="ruleForm.nickname"></el-input>
            </el-form-item>
            <el-form-item label="简介" prop="description">
                <el-input v-model="ruleForm.description"></el-input>
            </el-form-item>
            <el-form-item label="计量单位" prop="unit">
                <el-input v-model="ruleForm.phone"></el-input>
            </el-form-item>
            <el-form-item label="排序" prop="sort">
                <el-input v-model="ruleForm.sorts"></el-input>
            </el-form-item>
            <el-form-item label="输入类型" prop="inputType">
                <el-radio-group v-model="ruleForm.radio">
                    <el-radio :label="0">手动录入</el-radio>
                    <el-radio :label="1">单选</el-radio>
                    <el-radio :label="2">多选</el-radio>
                    <el-radio :label="3">单选（下拉列表）</el-radio>
                    <el-radio :label="4">多选（下拉列表）</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="是否启用" prop="enable">
                <el-switch
                        v-model="ruleForm.enable"
                        :active-value="1"
                        :inactive-value="0"
                        active-color="#13ce66"
                        inactive-color="#ccc">
                </el-switch>
            </el-form-item>
            <el-form-item label="是否允许自定义" prop="enable">
                <el-switch
                        v-model="ruleForm.enable"
                        :active-value="1"
                        :inactive-value="0"
                        active-color="#13ce66"
                        inactive-color="#ccc">
                </el-switch>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="">添加</el-button>
                <el-button @click="">重置</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                ruleForm: [],
                rules:[

                ],


            }
        }
    }
</script>

